<?php 
//引入数据库文件
include "../public/common.php";
if(isset($_GET['id'])) {
	$sql = "update apply set apply_status=1 where apply_id = {$_GET['id']}";
	if($result = $conn->query($sql)) {
		echo "<script>location='apply.php'</script>";
	}
}

 ?>